﻿using Microsoft.Practices.Prism.ViewModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EnvCommonUtility
{
    /// <summary>
    /// Tag 中存的值
    /// </summary>
    public class TagModel : NotificationObject
    {
        private string _id;
        /// <summary>
        /// 主键
        /// </summary>
        public string ID
        {
            get { return _id; }
            set
            {
                if (_id == value) return;
                _id = value;
                base.RaisePropertyChanged("ID");
            }
        }

        private string _parentID;
        /// <summary>
        /// 父结点
        /// </summary>
        public string ParentID
        {
            get { return _parentID; }
            set
            {
                if (_parentID == value) return;
                _parentID = value;
                base.RaisePropertyChanged("ParentID");
            }
        }

        private string _name;
        /// <summary>
        /// 结点名称
        /// </summary>
        public string Name
        {
            get { return _name; }
            set
            {
                if (_name == value) return;
                _name = value;
                base.RaisePropertyChanged("Name");
            }
        }

        private string _address;
        /// <summary>
        /// 位置
        /// </summary>
        public string Address
        {
            get { return _address; }
            set
            {
                if (_address == value) return;
                _address = value;
                base.RaisePropertyChanged("Address");
            }
        }

        private string _ip;
        /// <summary>
        /// IP/机器名
        /// </summary>
        public string IP
        {
            get { return _ip; }
            set
            {
                if (_ip == value) return;
                _ip = value;
                base.RaisePropertyChanged("IP");
            }
        }

        private string _port;
        /// <summary>
        /// 端口号
        /// </summary>
        public string Port
        {
            get { return _port; }
            set
            {
                if (_port == value) return;
                _port = value;
                base.RaisePropertyChanged("Port");
            }
        }

        private string _status;
        /// <summary>
        /// 状态
        /// </summary>
        public string Status
        {
            get { return _status; }
            set
            {
                if (_status == value) return;
                _status = value;
                base.RaisePropertyChanged("Status");
            }
        }

        private string _teacher;
        /// <summary>
        /// 老师姓名
        /// </summary>
        public string Teacher
        {
            get { return _teacher; }
            set
            {
                if (_teacher == value) return;
                _teacher = value;
                base.RaisePropertyChanged("Teacher");
            }
        }

        private string _remark;
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark
        {
            get { return _remark; }
            set
            {
                if (_remark == value) return;
                _remark = value;
                base.RaisePropertyChanged("Remark");
            }
        }
    }
}
